package com.zhijiaoyun.service;

import java.util.List;

import com.zhijiaoyun.model.ShoppingCart;
import com.zhijiaoyun.model.dto.ShoppingCartDto;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IShoppingCartService {

	ShoppingCart getShoppingCartByIds(Long goodsId, Long userId, int goodsType);

	void addShoppingCart(ShoppingCart cart);

	void updateShoppingCart(ShoppingCart cart);

	ShoppingCart getShoppingCartByCartIdUserId(Long cartId, Long userId);

	void deleteShoppingCart(ShoppingCart cart);

	List<ShoppingCart> getByUserId(Integer pageIndex, Long userId);

	List<ShoppingCartDto> getDtoByUserId(Integer pageIndex, Long userId);

	List<ShoppingCart> getShoppingCartByCartIds(List<String> cartIds);

}
